package demo4;

public class Dog {
    public String name;
    public int age;
    public void eat(){
        System.out.println(this.name+"正在吃骨头");
    }
    public void func(){
        this.eat();//this对当前对象成员方法的调用
    }

}
